package com.servlet.vo;

import java.math.BigDecimal;

public class ConsumDetail extends IdEntity {

	/** 资金流动类型 ：0_支出  ；1_收入 ；-1_冲账*/
	private int capitalType;
	
	public String getCapitalTypeV(){
		String val = "";
		if(capitalType == 0){
			val = "支出";
		}else if(capitalType == 1){
			val = "收入";
		}else if(capitalType == -1){
			val = "冲账";
		}
		return val;
	}
	
	/** 消费者id */
	private long user_id;
	/** 入账者id */
	private long enter_id;
	/** 消费类型id */
	private int consumptionType_id;
	/** 支付方式 */
	private int payment_id;
	/** 消费备注 */
	private String detail;
	/** 消费金额 */
	private BigDecimal consumptionAmount;
	
	/** 非库字段 begin */
	private String userName;
	private String enterName;
	private String consumptionTypeName;
	private String paymentName;
	/** 非库字段 end */
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getEnterName() {
		return enterName;
	}
	public void setEnterName(String enterName) {
		this.enterName = enterName;
	}
	public String getConsumptionTypeName() {
		return consumptionTypeName;
	}
	public void setConsumptionTypeName(String consumptionTypeName) {
		this.consumptionTypeName = consumptionTypeName;
	}
	public String getPaymentName() {
		return paymentName;
	}
	public void setPaymentName(String paymentName) {
		this.paymentName = paymentName;
	}
	
	public int getCapitalType() {
		return capitalType;
	}
	public void setCapitalType(int capitalType) {
		this.capitalType = capitalType;
	}
	public long getUser_id() {
		return user_id;
	}
	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}
	public long getEnter_id() {
		return enter_id;
	}
	public void setEnter_id(long enter_id) {
		this.enter_id = enter_id;
	}
	public int getConsumptionType_id() {
		return consumptionType_id;
	}
	public void setConsumptionType_id(int consumptionType_id) {
		this.consumptionType_id = consumptionType_id;
	}
	public int getPayment_id() {
		return payment_id;
	}
	public void setPayment_id(int payment_id) {
		this.payment_id = payment_id;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public BigDecimal getConsumptionAmount() {
		return consumptionAmount;
	}
	public void setConsumptionAmount(BigDecimal consumptionAmount) {
		this.consumptionAmount = consumptionAmount;
	}
	
}
